export function uniqueFunc(arr: any[] | undefined) {
  const res = new Map();
  return arr?.filter((item) => !res.has(item._id) && res.set(item._id, 1));
}


export function judgeLoad<T = any>(list: T[], hasMore: boolean) {
  return list?.length === 0 && !hasMore;
}
